package com.dmx.platform.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TOrder entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_priceplan")
public class TPricePlan implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer ownerId;
	private Integer timeSegment;
	private Integer minBookNum;
	private Integer priceType;
	private Float price;

	// Constructors

	/** default constructor */
	public TPricePlan() {
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "owner_id")
	public Integer getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Integer ownerId) {
		this.ownerId = ownerId;
	}

	@Column(name = "time_segment")
	public Integer getTimeSegment() {
		return timeSegment;
	}

	public void setTimeSegment(Integer timeSegment) {
		this.timeSegment = timeSegment;
	}

	@Column(name = "min_book_num")
	public Integer getMinBookNum() {
		return minBookNum;
	}

	public void setMinBookNum(Integer minBookNum) {
		this.minBookNum = minBookNum;
	}

	@Column(name = "price_type")
	public Integer getPriceType() {
		return priceType;
	}

	public void setPriceType(Integer priceType) {
		this.priceType = priceType;
	}

	@Column(name = "price")
	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}


}